home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
gen_vid
/
sam2.exe
/
ASM.ZIP
/
EXECF6.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-07-06
|
1KB
|
52 lines
@ECHO OFF
ECHO OFF
CLS
REM The Seventh parameter equals the first word of the Extern menu
IF %7==EXE2COM GOTO EXE2COM
IF %7==CODEVIEW GOTO CODEVIEW
IF %7==CONFIG GOTO CONFIG
IF %7==EXECUTE GOTO EXECUTE
ECHO Function %7 not available !
PAUSE
GOTO END
REM EXE2COM transforms an .EXE file into a .COM file if possible ...
:EXE2COM
EXE2BIN %2.EXE %2.COM
IF ERRORLEVEL 1 GOTO ERROR
IF EXIST %2.COM DEL %2.EXE
GOTO END
REM CODEVIEW is a Microsoft debugger used by the Microsoft Assembler
:CODEVIEW
IF EXIST %2.EXE GOTO CV_EXE
CV %2.COM
GOTO END
:CV_EXE
CV %2
GOTO END
REM Sometimes, an application is composed of several modules. In this case
REM you will setup a "response file" which will contain the names of all
REM the modules the link must link together to create THE .EXE or .COM file
:CONFIG
EDIT %2.CFG
GOTO END
REM Execute will run the application from SAM2 for testing
:EXECUTE
%2
GOTO END
REM Error Handler
:ERROR
PAUSE
:END